function stolenLunch(note) {
    var s = 'abcdefghij';
    return note.replace(/[a-j\d]/g, v => /\d/.test(v) ? s[+v] : s.indexOf(v));
}